package com.xiaomage.slide

import android.app.Activity
import android.graphics.BitmapFactory
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
   private lateinit var activity:Activity
    var hh=5f
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        activity=this
        var list=ArrayList<MyViewLikeImage>()
        for(id in 0 until 3){
            val image1=MyViewLikeImage(this)
            list.add(image1)
        }
        slideUtilClass.addView(list)
        bt_add.setOnClickListener{
            hh+=5f
        }
        bt_delete.setOnClickListener{
            hh-=5f
        }


    }
}
